home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / Apps / SoundApps / Patchmix / Source / UnitGen.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-06-12  |  944 b   |  45 lines

  1. /* Generated by Interface Builder */
  2.  
  3. //     This class contains information on the unit generators in the patch.
  4. //     It holds a list of instantiated unit generators, and a factory method
  5. //    for unit generator instances. 
  6. //    This method is subclassed for the various types of unit generators.
  7.  
  8. #import <objc/Object.h>
  9. #import <appkit/graphics.h>
  10. #import <appkit/NXImage.h>
  11. #import <stdio.h>
  12. #import <stdlib.h>
  13. #import <string.h>
  14. #import "Instrum.h"
  15.  
  16. extern id    Inst;
  17.  
  18. @interface UnitGen:Object
  19. {
  20.     NXPoint location;
  21.     NXSize     size;
  22.     NXPoint center;
  23.     NXRect  rectangle;
  24.     char    type[10];
  25.     id         paramList;
  26.     int        index;        // index in ugenList
  27.     BOOL    written;
  28.     char    name[10];    // code cmix function name
  29. }
  30.  
  31. - show;
  32. - (NXPoint *)getLocation;
  33. - (char *)getType;
  34. - (NXPoint *)getCenter;
  35. - (NXSize *)getSize;
  36. - (NXRect *)getRect;
  37. - move:(NXPoint *)newloc;
  38. - setIndex:(unsigned int)i;
  39. - (unsigned int)getIndex;
  40. - newWrite;
  41. - (BOOL)getWritten;
  42. -getParamList;
  43.  
  44. @end
  45.